<div class="section">
  <h3 class="title">博客分类</h1>
</div>
<table>
  <% for category in @categories %>
    <tr>
      <td  width="500">
        <%=category.name%>
      </td>
      <td  width="50">
        <%=link_to("编辑", :action=>"edit", :id=>category) %>
      </td>
      <td  width="50">
        <%=link_to("删除", {:action=>"delete", :id=>category},:confirm=>'你确定？') %>
      </td>
    </tr>
  <%end%>
  <tr>
    <td><%=will_paginate @categories%> </td>
  </tr>
</table>
